<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
   <head>
   <base href="<%=basePath%>">
    <title>UploadImg</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
    body { margin:0px; padding:0px; font-family:Arial; font-size:12px; }
    </style>
    <script type="text/javascript" src="<%=basePath%>/xheditor/jquery-1.8.0.min.js"></script>
   
</head>
<body>
    <form action="UploadImgServlet" method="post" enctype="multipart/form-data">
    <input id="filexx" name="filexx" type="file" style="width:380px;" />
    <p style="padding-top:100px;">
    <input value="${url}" id="url" name="url"/>
    <input value="${err}" id="err" name="err"/>
    <input name="status" value="3"/>
    <input type="submit" /></p>
    </form>
    <script type="text/javascript">
    function setPath(path) {
        parent.setPath2(path);
    }
    function showErr(err){
        parent.showErr2(err);
    }  
      $(document).ready(function(){ 
         var url = document.getElementById("url").value;
         var err =  document.getElementById("err").value;
         setPath(url);
         showErr(err);
        }); 
        
    </script>
 	</body>
</html>